3.16.64 \(\int (a+b x)^{-2+n} (c+d x)^{-n} \, dx\)

Optimal. Leaf size=39 \[ -\frac {(a+b x)^{n-1} (c+d x)^{1-n}}{(1-n) (b c-a d)} \]

________________________________________________________________________________________

Rubi [A]  time = 0.00, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.053, Rules used = {37} \begin {gather*} -\frac {(a+b x)^{n-1} (c+d x)^{1-n}}{(1-n) (b c-a d)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*x)^(-2 + n)/(c + d*x)^n,x]

[Out]

-(((a + b*x)^(-1 + n)*(c + d*x)^(1 - n))/((b*c - a*d)*(1 - n)))

Rule 37

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((a + b*x)^(m + 1)*(c + d*x)^(n +
1))/((b*c - a*d)*(m + 1)), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[b*c - a*d, 0] && EqQ[m + n + 2, 0] && NeQ
[m, -1]

Rubi steps

\begin {align*} \int (a+b x)^{-2+n} (c+d x)^{-n} \, dx &=-\frac {(a+b x)^{-1+n} (c+d x)^{1-n}}{(b c-a d) (1-n)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 36, normalized size = 0.92 \begin {gather*} \frac {(a+b x)^{n-1} (c+d x)^{1-n}}{(n-1) (b c-a d)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x)^(-2 + n)/(c + d*x)^n,x]

[Out]

((a + b*x)^(-1 + n)*(c + d*x)^(1 - n))/((b*c - a*d)*(-1 + n))

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.05, size = 0, normalized size = 0.00 \begin {gather*} \int (a+b x)^{-2+n} (c+d x)^{-n} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[(a + b*x)^(-2 + n)/(c + d*x)^n,x]

[Out]

Defer[IntegrateAlgebraic][(a + b*x)^(-2 + n)/(c + d*x)^n, x]

________________________________________________________________________________________

fricas [A]  time = 1.32, size = 60, normalized size = 1.54 \begin {gather*} -\frac {{\left (b d x^{2} + a c + {\left (b c + a d\right )} x\right )} {\left (b x + a\right )}^{n - 2}}{{\left (b c - a d - {\left (b c - a d\right )} n\right )} {\left (d x + c\right )}^{n}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^(-2+n)/((d*x+c)^n),x, algorithm="fricas")

[Out]

-(b*d*x^2 + a*c + (b*c + a*d)*x)*(b*x + a)^(n - 2)/((b*c - a*d - (b*c - a*d)*n)*(d*x + c)^n)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {{\left (b x + a\right )}^{n - 2}}{{\left (d x + c\right )}^{n}}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^(-2+n)/((d*x+c)^n),x, algorithm="giac")

[Out]

integrate((b*x + a)^(n - 2)/(d*x + c)^n, x)

________________________________________________________________________________________

maple [A]  time = 0.00, size = 45, normalized size = 1.15 \begin {gather*} -\frac {\left (d x +c \right ) \left (b x +a \right )^{n -1} \left (d x +c \right )^{-n}}{a d n -b c n -a d +b c} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x+a)^(n-2)/((d*x+c)^n),x)

[Out]

-(b*x+a)^(n-1)*(d*x+c)/(a*d*n-b*c*n-a*d+b*c)/((d*x+c)^n)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {{\left (b x + a\right )}^{n - 2}}{{\left (d x + c\right )}^{n}}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^(-2+n)/((d*x+c)^n),x, algorithm="maxima")

[Out]

integrate((b*x + a)^(n - 2)/(d*x + c)^n, x)

________________________________________________________________________________________

mupad [B]  time = 0.56, size = 102, normalized size = 2.62 \begin {gather*} -{\left (a+b\,x\right )}^{n-2}\,\left (\frac {a\,c}{\left (a\,d-b\,c\right )\,\left (n-1\right )\,{\left (c+d\,x\right )}^n}+\frac {x\,\left (a\,d+b\,c\right )}{\left (a\,d-b\,c\right )\,\left (n-1\right )\,{\left (c+d\,x\right )}^n}+\frac {b\,d\,x^2}{\left (a\,d-b\,c\right )\,\left (n-1\right )\,{\left (c+d\,x\right )}^n}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*x)^(n - 2)/(c + d*x)^n,x)

[Out]

-(a + b*x)^(n - 2)*((a*c)/((a*d - b*c)*(n - 1)*(c + d*x)^n) + (x*(a*d + b*c))/((a*d - b*c)*(n - 1)*(c + d*x)^n
) + (b*d*x^2)/((a*d - b*c)*(n - 1)*(c + d*x)^n))

________________________________________________________________________________________

sympy [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: HeuristicGCDFailed} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)**(-2+n)/((d*x+c)**n),x)

[Out]

Exception raised: HeuristicGCDFailed

________________________________________________________________________________________